package com.hotel.homehotel.utils;

import com.hotel.homehotel.before.entiy.User;
import com.hotel.homehotel.before.entiy.vo.UserVo;

public   class ConversionUtils {

    public static  UserVo toUserVo(User user){
        UserVo userVo = new UserVo();
        userVo.setPhoneNumber(user.getPhoneNumber());
        userVo.setId(user.getId());
        userVo.setAge(user.getAge());
        userVo.setAvatar(user.getAvatar());
        userVo.setEmail(user.getEmail());
        userVo.setIdCard(user.getIdCard());
        userVo.setName(user.getName());
        userVo.setSex(user.getSex());
        System.out.println("111111111111111111"+userVo);
        return  userVo;
    }
}
